<?php
    // Create user table
    $DB = mysqli_connect('ppt_mysql', 'root', 'root', 'ppt');
    try {
        $sql = "create table if not exists  users (
        id int PRIMARY KEY AUTO_INCREMENT,
        phone VARCHAR(255) NOT NULL UNIQUE,
        email VARCHAR(255),
        created VARCHAR(255),
        updated VARCHAR(255),
        token VARCHAR(255)
        );";
        $DB->query($sql);
        $sql = "INSERT INTO users (phone, email, created, updated, token)
                        VALUES
                        ('89990000000', 'test@test.test', '01.11.2023', '01.11.2023', '');";
        $DB->query($sql);
    } catch (Exception $exception) {
        echo $exception;
    }
    $DB->close();
    unset($DB);